<?php
$startTime = microtime(true);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_VERBOSE, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)");
    curl_setopt($ch, CURLOPT_URL, 'http://webtv.liquidplatform.com/2.0/uploadThumb');
    curl_setopt($ch, CURLOPT_POST, true);
    $Filename = getcwd() . '/20120511_220113.jpg';
    $post = array(
        "Filename"=>"@{$Filename}",
        'token' => '{apiKey}',
        'type' => 'thumbs',
        'id' => '{$mediaId}',
        'Upload' => 'Submit Query'
    );
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
    $response = curl_exec($ch);
    print number_format(microtime(true) - $startTime, 3);
    print "\n";
    print $response;

?>
